package com.ifacebox.arcsoft.face.model;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author znn
 */
public class FacePosition {
    private int x;
    private int y;
    private int width;
    /**
     * 兼容拼写错误
     */
    @JsonProperty("heigth")
    private int height;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return String.format("{x=%d,y=%d,width=%d,height=%d}", this.getX(), this.getY(), this.getWidth(), this.getHeight());
    }
}
